<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>大家动弹</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
	
    <div class="main">


        
             
             <div class="tweet">
             	
                {get sql="SELECT * FROM `table_tweet` WHERE  status=99 ORDER BY tweetid DESC" rows="20" page="$page"}
              {php list($keyid, $verify) = keyid_make('tweet', 'description', $r[tweetid]);}
              
                
                        <div class="tweet-item">
                        	
                            <div class="tweet-aside">
                                <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}" rel="tooltip" data-placement="right"><img src="{thumb(avatar($r[userid]),48,48)}" alt="{$r[username]}"  target="_blank" width="48" height="48" class="thumbnail"/></a>
                            </div>
                            <div class="tweet-main">
                                <div class="arrow"></div>
                                <div class="tweet-inner">
                                
                                	<div class="tweet-desc">@<a target="_blank" href="{url("?module=space&userid=$r[userid]")}">{username($r[userid])}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[description], 300)}</a></div>
                                    
                                    
                                    {if $r[thumb]}
                                    <div class="tweet-thumb"> <img src="{thumb($r[thumb],100,'')}" class="thumbnail" lang="{$r[thumb]}"/> </div>
                                    <div class="tweet-preview"><a target="_blank" href="{$r[thumb]}">查看原图</a><br/><img src="misc/loading.gif"/></div>
                                    {/if}
                                    	
                                    
                                    <div class="tweet-tool">
                                    	<i class="icon-eye-open"></i>{$r[hits]}次浏览&nbsp;
                                    	<i class="icon-plus"></i><a href="#">关注TA</a>&nbsp;
                                        <i class="icon-bookmark"></i><a href="#">添加收藏</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                  
                   {/get}
                   
             </div>
       
            <div class="pagination">
            	{$pages}
            </div>

    </div>
    
    <div class="aside">
    	
        <div class="mod">
            <div class="body">
                <a href="{url("?module=$module&action=create")}" class="button button-primary button-block">发布微博</a>
            </div>
        </div>
    	
        
        <div class="mod">
        	<div class="head">热门动弹</div>
            <ul class="body">
              {get sql="select url,userid,username,description,hits from table_tweet order by tweetid DESC" rows="10"}
                <li>({$r[hits]}) &nbsp;<a href="{url("?module=space&userid=$r[userid]")}">@{$r[username]}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{$r[description]}</a></li>
              {/get}
              </ul>
        </div>
    	
         
          
    </div>
</div>


{template 'footer.html'}

